package com.bayair.doctor.ui.inquiry;

import android.util.ArrayMap;

import com.bayair.doctor.biz.helper.SpDoctor;
import com.bayair.doctor.data.bean.ServerListResp;
import com.bayair.doctor.mvp.IModel;
import com.bayair.doctor.net.BaseEntity;
import com.bayair.doctor.net.RxManager;

import io.reactivex.Observable;

public class InquiryModel extends IModel implements InquiryContract.Model {

    @Override
    public Observable<BaseEntity<ServerListResp>> getListInServer() {
        ArrayMap<String, Object> map = new ArrayMap<>();
        map.put("token", SpDoctor.getToken());
        return RxManager.getInstance().getApiService().getPatientListInSever(map);
    }
}
